package com.qny.ai.dto.user;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserRegisterRequest {
    @NotBlank(message = "username不能为空")
    @Size(max = 50, message = "username长度不能超过50")
    private String username;

    @NotBlank(message = "password不能为空")
    @Size(max = 100, message = "password长度不能超过100")
    private String password;

    @Email(message = "email格式不正确")
    @Size(max = 100, message = "email长度不能超过100")
    private String email;
}


